

import json
import re
import requests

class Test:  

    def send_news(self):
        msg = ''
        url = "https://api.qqsuu.cn/api/dm-60s?type=json"
        try:
            data = requests.get(url=url, headers=self.headers).json()
            print('---data', data)
        except Exception  as e:
            # msg = f'\n[ERROR]:{e}'
            print(e)
            return e

        return data

your_instance = Test()  
your_instance.headers = { "Content-Type": "application/json"} 

result = your_instance.send_news()

print(result)